package com.planet.db.dao;

import com.planet.db.model.AssessmentUser;
import com.planet.query.AssessmentUserQuery;
import com.planet.vo.AssessmentUserVO;

import java.util.List;

public interface AssessmentUserMapper {
    /**
     * 插入督办
     * @param assessmentUserQuery
     * @return
     */
    boolean insertSelective(AssessmentUserQuery assessmentUserQuery);

    /**
     * 根据手机号获取督办信息(已经督办的)
     * @param phone
     * @return
     */
    AssessmentUser selectByPhoneAndType(String phone);


    /**
     * 获取督办信息
     * @param phone
     * @return
     */
    AssessmentUser selectByPhone(String phone);

    /**
     * 更新督办状态（已督办  为督办）
     * @param assessmentUserQuery
     * @return
     */
    boolean updateAssessState(AssessmentUserQuery assessmentUserQuery);

    /**
     * 获取已督办的列表
     * @return
     */
    List<AssessmentUser> selectHaveAssessList();

    /**
     * 获取未督办的列表
     * @return
     */
    List<AssessmentUser> selectNoHaveAssessList();

    /**
     * 督办
     * @return
     */
    boolean assess(AssessmentUserQuery assessmentUserQuery);
}